/*
 * Copyright (c) 2010 Nokia Corporation.
 */

import Qt 4.7

Rectangle {
    id: button

    property alias source: image.source

    signal clicked

    width: 50; height: 50
    color: "transparent"

    Behavior on scale { NumberAnimation { duration: 75 } }

    Image {
        id: image

        width: parent.width * 0.40; height: width
        anchors.centerIn: parent
        smooth: true
    }

    MouseArea {
        anchors.fill: parent
        onClicked: { button.clicked() }
        onEntered: { button.scale = 0.9 }
        onExited: { button.scale = 1.0 }
    }
}
